<?php
use yii\helpers\Html;
use backend\assets\AppAsset ;
use yii\widgets\Breadcrumbs ;

/* @var $this \yii\web\View */
/* @var $content string */

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>"/>
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta name="description" content="p2p">
    <meta name="author" content="wuxin">    
    <?php $this->head() ?>
</head>
<body class="skin-blue sidebar-mini">
    <?php $this->beginBody() ?>
    <div class="wrapper">
        <?= $this->render('common_head') ?>
        <?= $this->render('common_left') ?>
        <div class="content-wrapper">
            <section class="content-header">
                <h1>
                  <?= empty($this->params['display_name'])?Yii::$app->params['webname']:$this->params['display_name']?>
                </h1>   
                <?= Breadcrumbs::widget(['homeLink'=>['label' => '<i class="fa fa-dashboard"></i>主页','url' => Yii::$app->homeUrl, 'encode' => false,],	'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],]) ?>
            </section>  
            <section class="content">
            <?= $content ?>    
            </section>
        </div>
        <?= $this->render('common_foot') ?>
        <div class="control-sidebar-bg"></div>
    </div>
    <?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
